package com.wing.cabinet.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wing.cabinet.model.entity.StorageInventoryUser;
import com.wing.cabinet.model.request.StorageInventoryUserForm;
import com.wing.cabinet.model.response.KnifeUserVO;
import com.wing.cabinet.model.response.StorageInventoryUserVO;

import java.util.List;
import java.util.Map;

/**
 * 用户暂存柜产品货道库存-Service
 *
 * @author
 */
public interface StorageInventoryUserService extends IService<StorageInventoryUser> {

    /**
     * 添加
     *
     * @param storageInventoryUserForm
     * @return
     */
    int add(StorageInventoryUserForm storageInventoryUserForm);

    /**
     * 列表-app
     *
     * @param params
     *
     * @return
     */
    List<StorageInventoryUserVO> list4app(Map<String, Object> params);

    /**
     * 分页list-app
     *
     * @param page
     * @param params
     *
     * @return
     */
    Page<StorageInventoryUserVO> pageList4app(Page page, Map<String, Object> params);

    /**
     * 详情-app
     *
     * @param id
     *
     * @return
     */
    StorageInventoryUserVO get4appById(Long id);

    List<KnifeUserVO> getKnifeUsers();
}
